import { createMemoryHistory, createRouter } from 'vue-router'

import Greet from '../components/Greet.vue'
import TodoList from "../components/TodoList.vue"

const routes = [
    { path: '/', component: Greet },
    { path: '/todo', component: TodoList },
]

const router = createRouter({
    history: createMemoryHistory(),
    routes,
})

export { router, routes }
